<template>
    <div>
        <div class="weekend-title">周末去哪儿</div>
        <ul>
            <li class="item" v-for="(item,index) in list" :key="index">
                <div class="item-img-wrapper">
                    <img :src="item.imgUrl" alt="" class="item-img">
                </div>
                <div class="item-info">
                    <p class="item-title">{{item.title}}</p>
                    <p class="item-desc">{{item.desc}}</p>
                </div>
            </li>
        </ul>
    </div>
</template>

<script>
export default {
  name: "HomeWeekend",
  props:{
      list:Array
  },
  data (){
      return {
        //   recommendList:[{
        //     id:'001',
        //     title:'南国冰雪乐园',
        //     desc:'这里可以让你在南国感受到北国风光',
        //     img:'http://img1.qunarzz.com/sight/source/1811/15/66f14e0fd6fbb.jpg_r_640x214_5d69f21d.jpg'
        //   },{
        //     id:'002',
        //     title:'浮在海上的绿洲111',
        //     desc:'南国滨海之城，阳江等你',
        //     img:'http://img1.qunarzz.com/sight/source/1811/b8/5d599bbdcf8b57.jpg_r_640x214_2ee055e3.jpg'
        //   },{
        //     id:'003',
        //     title:'阳江温泉知多少',
        //     desc:'让你舒舒服服过周末 ',
        //     img:'http://img1.qunarzz.com/sight/source/1811/f8/29dfa785277839.jpg_r_640x214_7d051523.jpg'
        //   }]
      }
  }
};
</script>

<style lang="stylus" scoped>
    .weekend-title
        line-height :.8rem
        background :#eee
        text-indent :.2rem
    .item-img-wrapper
        overflow: hidden
        height :0
        padding-bottom:33.9%
        .item-img
            width : 100%
    .item-info
        flex:1
        padding :.1rem
        .item-title
            line-height :.54rem
            font-size :.32rem
        .item-desc
            line-height :.4rem
            color: #ccc
</style>
